package yancy.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import yancy.common.validator.group.AddGroup;
import yancy.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
@Data
@TableName("sys_file")
public class SysFile {
    @TableId
    @NotNull(message="fileId不能为空", groups = {UpdateGroup.class})
    private Long fileId;
    @NotNull(message="fileId不能为空", groups = {AddGroup.class})
    private String filename;
    @NotNull(message="fileId不能为空", groups = {AddGroup.class})
    private String url;
    private Integer status;

    private Long createUserId;
    private Date createTime;

}
